//
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by Fernflower decompiler)
//

package com.ruoyi.live.user.service;

import com.ruoyi.live.base.domain.User;
import com.ruoyi.live.user.domain.ItmcCenterUser;
import org.springframework.stereotype.Component;

@Component
public class ItmcUserService extends UserCenterService {
    public ItmcUserService() {
    }

    public ItmcCenterUser covert(Object user) {
        User me = (User)user;
        ItmcCenterUser entity = new ItmcCenterUser();
        entity.setId(me.getId());
        entity.setUserTelephone(me.getUserCellphone());
        entity.setUserLoginName(me.getUserLoginName());
        entity.setUserLoginNameMd5(me.getUserLoginNameMd5());
        entity.setUserPass(me.getUserPasswordMd5());
        entity.setUserRealName(me.getUserRealName());
        entity.setUserState(me.getUserState());
        return entity;
    }

    public String getKey() {
        return "itmc_user_json";
    }

    public String getToken() {
        return "liveapp";
    }

    public String getUrl() {
        return "http://user.itmc.org.cn";
    }
}
